package com.generator.storageManage.storeBrowsing.dao;

import com.generator.storageManage.storeBrowsing.pojo.City;
import com.generator.storageManage.storeBrowsing.pojo.Province;
import com.generator.storageManage.storeBrowsing.pojo.OutCountObject;
import com.generator.storageManage.storeBrowsing.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IStoreBrowsing {

    /**
     * 根据条件查询仓库信息
     * @param outCountObject
     * @return
     */
    public List<OutCountObject> getWarehouseList(OutCountObject outCountObject);

    /**
     * 查找省份
     */
    public List<Province> getAllProvince(Province province);

    /**
     * 查找城市
     */
    public List<City> getAllCity(City city);

    /**
     * 查找用户（仓管）
     */
    public List<User> getUserList(User user);

    /**
     * 更新仓库信息
     */
    public Integer storageUpdate(OutCountObject outCountObject);

    /**
     * 创建仓库
     * @param outCountObject
     * @return
     */
    public Integer addStorage(OutCountObject outCountObject);
}
